<?
$tt=array("dname","address","mobile","qq","headphoto","cname","ctel","alipay","position","email","com_name","com_type","province","city","fax","website","business","short_company_name");
$fen=0;
foreach($m_info as $k=>$v){
	if(in_array($k,$tt) && $v){
		$fen++;
	}
}
$p=$fen/count($tt);
$b=628*$p;
$b2=$b+90;
if($p<0.5){
	$ts="请完善相关信息！";
}
elseif($p<0.7){
	$ts="信息基本完整！";
}
else{
	$ts="信息完整,安全度高。";
}
$h=array("account_info"=>"基本信息","enterprise_info"=>"账号信息","contact"=>"联系方式");
if($m_info['dtype']!=5){
	$h["certifi"]="资质认证";
}
// if($_SESSION['alliance']){
	// $h["alliance_t_info"]="联盟体信息";
// }
// if($_SESSION['alliance']){
	// $h["alliance_info"]="联盟信息";
// }
?>
<div class="basicnav">
    <ul>
    <?	foreach($h as $k=>$v){?>
        <li <?if("/".$k.".html"==$_SERVER['PHP_SELF']){?>class="act"<?}?>><a href="<?=$k?>.html"><?=$v?></a></li>
    <?	}?>
    </ul>
</div>
<?	if($_SERVER['PHP_SELF']!="/account_info.html" && $_SERVER['PHP_SELF']!="/certifi.html"){?>
<!--完成度-->
<div class="degree">
    <b>资料完成度：</b>
    <div class="set set1"></div>
    <div class="set set2"></div>
    <div class="set set3" style=" width:<?=$b?>px;"></div><!--宽为628px，所以10%就等于 width:62.8px;  100%为628px-->
    <div class="set4" style="left:<?=$b2?>px;"><?=round($p*100)?>%，<?=$ts?></div><!--left的位置可以调整-->
</div>
<!---->
<?	}?>